package com.stone.springboot.handler;

import com.stone.springboot.bean.Config;
import com.stone.springboot.bean.ConnectionConfig;
import com.stone.springboot.bean.User;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Stone on 2017/7/7.
 */
@RestController
@Slf4j
public class TestHandler{

    @GetMapping(value = {"/test"})
    public String test(){
        final String evn = System.getProperty("spring.profiles.active");
        log.info("< {} >",evn);
        return evn;
    }
}
